from django.db import models

# Create your models here.
class faqsdata(models.Model):
    question=models.CharField(max_length=200,blank=True)
    answer=models.CharField(max_length=200,blank=True)

class zy(models.Model):
    zsdm=models.PositiveSmallIntegerField(primary_key=True)
    zymc=models.CharField(max_length=10)
    cc=models.CharField(max_length=10)
    sfbz=models.PositiveSmallIntegerField()

class lq(models.Model):
    zkzh=models.CharField(primary_key=True,max_length=9)
    xm=models.CharField(max_length=10)
    zy=models.ForeignKey(zy,null=True,on_delete=models.CASCADE)
